package oop3.Task;

/*
oop模拟实现猫抓老鼠,
猫有名字,体重,体力等属性,老鼠有名字,体力等属性
,如果老鼠被猫抓住,被咬死,猫体力上涨,老鼠体力变成0;
 */
public class TestCat {
    public static void main(String[] args) {
        Cat cat = new Cat("小咪", 20, 200);
        Mouse mouse = new Mouse("灰灰", 60);
        Mouse mouse2 = new Mouse("黑黑", 120);
        cat.show();
        mouse.show();
        cat.grab(mouse);
        System.out.println(">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>");
        mouse2.show();
        cat.grab(mouse2);
    }
}
